package ai.mspbots.service.query.controller;

import ai.mspbots.service.report.entity.QueryEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/query")
public class QueryController {

    @GetMapping("/{id}")
    @ResponseBody
    public QueryEntity getQuery(@PathVariable("id")Long id) {
        return QueryEntity.of(id);
    }
}
